home *** CD-ROM | disk | FTP | other *** search
/ NT Sources / Infomagic - NT Source Volume 1 (Disc 1 of 2).iso / network / pcdctrla.exe / PCDCTRL.EXE / PCDPROG.TPU < prev    next >
Text File  |  1997-09-08  |  1KB  |  30 lines

  1. !+++
  2. ! PCDUO_PROGMAN_INI.TPU - Updates PROGMAN.INI for PC-Duo 
  3. !---
  4.  
  5. LUT_start_edit ();      ! This reads the file (if it exists), creates a buffer,
  6.                         ! and positions us at the top of the buffer
  7.  
  8. IF LUT_buffer_empty
  9. THEN
  10.     MESSAGE ("ERROR : PROGMAN.INI Doesn't exist!");
  11.     QUIT;
  12. ENDIF;
  13.  
  14. ! We don't need to check whether PC-Duo is already installed on this PC. If it
  15. ! is, then we will simply replace the display driver path with a (new) value.
  16.  
  17. MESSAGE ("Updating Program Manager Display Driver setting");
  18. LUT_win_line_replace_add ("[settings]", "display.drv", "display.drv=C:\PCDUO\pcdvga.drv");
  19.  
  20. ! We also add a new PC-Duo Group, if it is not already present. The group file
  21. ! name is PCDUO.GRP. LUT_insert_group will not add a new PCDUO.GRP if it is
  22. ! already there
  23.  
  24. MESSAGE ("Checking for / Adding a PC-Duo Group");
  25. LUT_insert_group ("PCDUO.GRP", "C:\WINDOWS\PCDUO.GRP");
  26.  
  27. ! And now perform 'standard' finishing functions...
  28.  
  29. LUT_finish_edit ();
  30.